<?php
$a = range(0,1000);
var_dump(memory_get_usage());

// COW copy on write
$b = $a;
var_dump(memory_get_usage());

$a = range(0,1000);
var_dump(memory_get_usage());